package com.nuan.shiro.constants;

import lombok.Getter;

/**
 * @author 叶圣暖
 */
@Getter
public enum CodeEnum {

    // 成功
    SUCCESS(200, "成功", "操作成功"),

    //2500XX项目内通用错误码
    PARAMETER_VERIFICATION_FAILED(250000, "系统开小差了，请稍后再试", "参数校验失败"),
    SYSTEM_ERROR(250099, "系统开小差了，请稍后再试", "系统异常"),
    AUTH_FAIL(401, "无权限","无权限"),
    AUTH_LOGIN(254002, "未登录","未登录"),
    AUTH_ERROR(254003, "鉴权异常","鉴权异常");

    private final int code;
    private final String msg;
    private final String desc;

    CodeEnum(Integer code, String msg, String desc) {
        this.code = code;
        this.msg = msg;
        this.desc = desc;
    }

}
